package cn.cloudtogo.adaptation.amqp.ironegg;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @author yaolianhua789@gmail.com
 **/
@Data
public class MiddlewareRawData {

    private String uid;
    private String middlewareType;

    private String description;
    private String etag;
    private String id;
    private String dataType;
    private String factoryProjectId;
    private String named;

    private Metadata metadata;

    @Data
    public static class Metadata {

        private Param param;
        private String username;
        private String password;
        private String schemaName;
        private String host;
        private String port;
        private String uri;
    }

    @Data
    public static class Param {
        @JsonProperty("utf-8")
        private String utf8;
        private String serverTimezone;
    }

}
